package connectors;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

/**
 * @author Lucas 'Mezmor' Pfister, Vishal Patel
 *
 */
public class Client extends Connection {
	
	
	public Client(String ip, int port){
		try {
			socketConnector = new Socket(ip, port);
			outgoing = new PrintWriter(socketConnector.getOutputStream(), true); // new DataOutPutStream(socketConnector.getOutputStream());
			incoming = new BufferedReader(new InputStreamReader(socketConnector.getInputStream()));
		} catch (NumberFormatException | IOException e) {
			e.printStackTrace();
		}
	}
	
	public String toString(){
		return "Client";
	}
}